import Vue from 'vue/dist/vue.js';
import VueRouter from 'vue-router';
Vue.use(VueRouter);

import home from './components/home.vue';
import search from './components/search.vue';
import shopcar from './components/shopcar.vue';
import member from './components/member.vue';
import newsList from './components/newsList.vue';
import newsInfo from './components/newsInfo.vue';
import picture from './components/picture.vue';
import pictureInfo from './components/pictureInfo.vue';
import goodsList from './components/goodsList.vue';


var router = new VueRouter({
	routes: [
		{path: '/', redirect: '/home'},
		{path: '/home', component: home},	
		{path: '/search', component: search},	
		{path: '/shopcar', component: shopcar},	
		{path: '/member', component: member},
		{path: '/home/newsList', component: newsList},	
		{path: '/home/newsInfo', component: newsInfo},
		{path: '/home/picture', component: picture},
		{path: '/home/picture/info', component: pictureInfo},
		{path: '/home/goodsList', component: goodsList}
			],
	linkActiveClass: 'mui-active'
});

export default router;